<template>
    <div class="video-box">
        <div class="head">
            <p class="title">视频</p>
            <div class="more">
                <a href="javascript:;" target="">
                    查看全部
                    <div class="more-icon-wrap">
                        <a-icon type="right" />
                    </div>
                </a>
            </div>
        </div>
        <div class="video-list">
            <ul class="video-ul">
                <li v-for="n in 4" :key="n" class="hover-box" title="点击播放视频">
                    <div class="figure">
                        <img src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e74c4ff741bcdfc5b28a48a43e4edc6d.jpg?thumb=1&w=370&h=225&f=webp&q=90" alt="">
                        <a-icon type="youtube" class="play-icon" />
                    </div>
                    <p class="p1">2021年春季新品发布会第一场</p>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
export default {
    name: 'VideoBox'
}
</script>

<style lang="less" scoped>
@import '../assets/less/utils.less';

.video-box {
    width: 100%;
    margin-top: 22px;

    .head {
        position: relative;
        width: 100%;
        height: 58px;

        .title {
            width: 100%;
            height: 100%;
            line-height: 58px;
            font-size: 22px;
            color: #333;
            font-weight: 200;
        }

        .more {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            z-index: 1;
            display: flex;
            align-items: center;

            a {
                display: flex;
                font-size: 16px;
                align-items: center;
                color: #333;

                .more-icon-wrap {
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    text-align: center;
                    line-height: 16px;
                    background-color: #b0b0b0;
                    color: #fff;
                    margin-left: 12px;
                }

                &:hover {
                    color: #ff6700;

                    .more-icon-wrap {
                        background-color: #ff6700;
                    }
                }
            }
        }
    }

    .video-list {
        width: 1240px;
        height: 285px;
        margin: auto;

        .video-ul {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-between;

            li {
                width: 296px;
                height: 100%;
                background-color: #fff;
                cursor: pointer;

                .figure {
                    position: relative;
                    width: 100%;
                    height: 180px;
                    
                    img {
                        height: 180px;
                    }

                    .play-icon {
                        position: absolute;
                        z-index: 1;
                        left: 20px;
                        bottom: 10px;
                    }

                    &:hover {

                        .play-icon {
                            color: #ff6700;
                        }
                    }
                }

                .p1 {
                    width: 100%;
                    text-align: center;
                    font-size: 14px;
                    color: #333;
                    margin-top: 22px;
                }
            }
        }
    }
}
</style>